<script setup>
import {useRouter} from "vue-router";
import {ref} from "vue"
import Add from "@/assets/add.png"
import {AddEquation} from "three";
const router = useRouter()
const value = ref('');
const ModificationFn = () => {
  router.push('/New')
}
const onClickLeft = () => {
  router.go(-1)
}
</script>

<template>
  <div class="px-[15px] h-[46px] elasticity backgroundColor">
    <van-icon @click="onClickLeft" name="arrow-left" />
    <div class="w-[calc(100%-80px)]">
      <van-search v-model="value" placeholder="搜索商品/货号" />
    </div>
    <van-icon size="20px" color="#1ECD84" name="scan" />
    <van-icon @click="ModificationFn"  :name="Add" />
  </div>
</template>

<style scoped lang="less">
::v-deep{
  .van-search{
    height: 46px;
    .van-cell{
      height: 25px;
    }
  }
}
</style>